﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RuleNode.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Gather.RuleNode" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>规则节点</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    
    
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <style type="text/css">
        textarea
        {
            height: 27px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Panel1" runat="server">
                <div style="margin-left: auto; margin-right: auto; width: 500px; height: auto">
                    采集规则节点：<asp:DropDownList ID="ddlNode" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="btnGoToEdit" runat="server" Text="修改改节点" OnClick="btnGoToEdit_Click"
                        Cssclass="btn btn-default" />
                    <br />
                    <asp:Button ID="btnAddNew" runat="server" Text="添加新节点" OnClick="btnAddNew_Click"
                        Cssclass="btn btn-default" />
                    <asp:Button ID="btnDelete" runat="server" Text="删除节点" Cssclass="btn btn-default" OnClick="btnDelete_Click" /></div>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server" Visible="false">
                <fieldset>
                    <legend><strong>栏目匹配规则</strong></legend>
                    <table cellpadding="3" width="98%" align="center">
                        <tr>
                            <td align="right" width="16%">
                                扫描栏目页范围：
                            </td>
                            <td>
                                <asp:TextBox ID="txtCategoryArea" runat="server" Width="528px" TextMode="MultiLine"
                                    Rows="2"></asp:TextBox>
                                <span class="help-inline">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="16%">
                                文章页链接：
                            </td>
                            <td>
                                <asp:TextBox ID="txtContentPageUrl" runat="server" Width="528px" TextMode="MultiLine"
                                    Rows="2"></asp:TextBox>
                                <span class="help-inline">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="16%">
                                栏目下一页：
                            </td>
                            <td>
                                <asp:TextBox ID="txtCategoryPageNextUrl" runat="server" Width="528px" Rows="2" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" width="16%">
                                忽略采集的URL：
                            </td>
                            <td>
                                <asp:TextBox ID="txtIgnoreUrl" runat="server" TextMode="MultiLine" Width="528px"></asp:TextBox>
                              <span class="help-inline">正则表达式</span></td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <legend><strong>文章匹配规则</strong></legend>
                    <table cellpadding="3" width="98%" align="center">
                        <tr>
                            <td align="right" width="16%">
                                标题：
                            </td>
                            <td width="84%">
                                <asp:TextBox ID="txtContentTitle" runat="server" Rows="2" Width="528px" 
                                    TextMode="MultiLine"></asp:TextBox>
                                <span class="help-inline">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                内容：
                            </td>
                            <td>
                                <asp:TextBox ID="txtContent" runat="server" Rows="2" Width="528px" 
                                    TextMode="MultiLine"></asp:TextBox>
                                <span class="help-inline">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                作者：
                            </td>
                            <td>
                                <asp:TextBox ID="txtAuthor" runat="server" Rows="2" Width="528px" 
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                来源：
                            </td>
                            <td>
                                <asp:TextBox ID="txtFrom" runat="server" Rows="2" Width="528px" 
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                日期：
                            </td>
                            <td>
                                <asp:TextBox ID="txtUpdateTime" runat="server" Width="528px" 
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                文章页下一页地址：
                            </td>
                            <td>
                                <asp:TextBox ID="txtContentPageNextUrl" Rows="2" runat="server" Width="528px" 
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                全文文章页地址：
                            </td>
                            <td>
                                <asp:TextBox ID="txtFullArticleUrl" runat="server" Width="528px" 
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:Button ID="btnOK" runat="server" Cssclass="btn btn-default" OnClick="btnOK_Click" Text="提交" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
